﻿package com.xkrys.display
{
	import flash.display.MovieClip;
	import com.xkrys.event.TrackEvent;
	
	/**
	 * ...
	 * @author Christopher Courtois
	 */
	public class TrackingMovieClip extends MovieClip 
	{
		
		public function TrackingMovieClip() {
			super();
		}
		
		public override function set y(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.Y_CHANGE, y, super.y = n)); }
		public override function set x(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.X_CHANGE, x, super.x = n)); }
		
		public override function set scaleX(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.SCALE_X_CHANGE, scaleX, super.scaleX = n)); }
		public override function set scaleY(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.SCALE_Y_CHANGE, scaleY, super.scaleY = n)); }
		
		public override function set width(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.WIDTH_CHANGE, width, super.width = n)); }
		public override function set height(n:Number):void { dispatchEvent(new TrackEvent(TrackEvent.HEIGHT_CHANGE, height, super.height = n)); }
		
		
	}
	
}